<template>
	<view class="">
		<image src="http://fangguaner.oss-cn-chengdu.aliyuncs.com/upload/20210726/0a57ef6c614c2dd2f640292e8f42e3a7.png"
			mode="" class="hiimg">
		</image>
		<view class="centerbox">
			<view class="portion" v-for="(item,index) in arr" :key="index">
				<image :src="item.image" mode="" class="img"></image>
				<view class="name">
					{{item.name}}
				</view>
				<view class="botmbox">
					<view class="jifenbox">
						{{item.jifen}}
						<text class="jifen">积分</text>
					</view>
					<view class="duihuan"  @click="duihuan">
						兑换
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				arr: [{
					image: "http://fangguaner.oss-cn-chengdu.aliyuncs.com/upload/20210726/8b231c0bad90c88ec8b68b95a7be1fc9.jpg",
					name: "午餐便当盒",
					jifen: "6040"
				}, {
					image: "http://fangguaner.oss-cn-chengdu.aliyuncs.com/upload/20210726/8b231c0bad90c88ec8b68b95a7be1fc9.jpg",
					name: "午餐便当盒",
					jifen: "6040"
				}, {
					image: "http://fangguaner.oss-cn-chengdu.aliyuncs.com/upload/20210726/8b231c0bad90c88ec8b68b95a7be1fc9.jpg",
					name: "午餐便当盒",
					jifen: "6040"
				}]
			}
		},
		onLoad() {

		},
		methods: {
			duihuan(){
				this.jumpLink({link:"/pages/shangpinxiangq/index"})
			}
		}
	}
</script>

<style scoped lang="less">
	.hiimg {
		width: 710rpx;
		height: 250rpx;
		background-color: #000000;
		border-radius: 5rpx;
		margin: 17rpx 19rpx;
	}

	.centerbox {
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
		margin: 23rpx 33rpx;

		.portion {
			margin-bottom: 25rpx;

			image {
				width: 320rpx;
				height: 320rpx;
				background-color: #000000;
				border-radius: 5rpx;
			}

			.name {
				font-family: MicrosoftYaHei;
				font-size: 28rpx;
				color: #000000;
			}

			.botmbox {
				display: flex;
				justify-content: space-between;
				align-items: center;
				// margin-top: 21rpx;

				.jifenbox {
					font-family: PingFang-SC-Bold;
					font-size: 32rpx;
					color: #ff0000;

					.jifen {
						font-family: PingFang-SC-Bold;
						font-size: 19rpx;
						color: #ff0000;
						margin-left: 10rpx;
					}
				}

				.duihuan {
					width: 110rpx;
					height: 50rpx;
					background-color: #f75653;
					border-radius: 25rpx;
					line-height: 50rpx;
					text-align: center;
					font-family: MicrosoftYaHei;
					font-size: 26rpx;
					color: #ffffff;
				}
			}
		}
	}
</style>
